{namespace v=Tx_Vhs_ViewHelpers}
<f:layout name="Xml" />
<f:section name="main">

<rss version="2.0">
<channel>
	<title>Life in 35..: {f:cObject(typoscriptObjectPath: 'lib.pageTitle')}</title>
	<link>{f:cObject(typoscriptObjectPath: 'lib.url')}</link>
	<image>
		<url>http://www.lifein35.net/typo3conf/ext/lifein35/Resources/Public/Icons/icon35.ico</url>
		<link>{f:cObject(typoscriptObjectPath: 'lib.url')}</link>
	</image>
	
<f:for each="{images}" as="post">
<f:for each="{post.files}" as="image" iteration="c">
<f:if condition="{c.isFirst}">
   <item>
      <title>{image.originalResource.title}</title>
      <link>{f:uri.action(action:'show',arguments:{image:post},absolute:'1')}</link> 
      <description><f:if condition="{image.originalResource.originalFile.properties.description}">{image.originalResource.originalFile.properties.description}</f:if></description>
   </item>
</f:if>
</f:for>
</f:for>

</channel>
</rss>
</f:section>